/*
 * @Author: 李世千
 * @Date: 2021-04-21 15:50:43
 * @LastEditTime: 2021-04-26 16:33:49
 * @LastEditors: 李世千
 */
import {request} from 'umi'

//获取用户列表id
export const getMsgboard=()=>{
    return request('/api/page/msgboard')
}

//留言板
export const MessageBoard= (hostId:string,page=1,pageSize=6) => request(`/api/comment/host/${hostId}`,{
    params:{
        page,
        pageSize
    }
})


//推荐阅读
export const GetDetail= (id:string) => request(`/api/article/${id}/views`,{method:'POST'})


//评论
export const MessageTransfer= (data:any) => request(`/api/comment`,{method:'POST',data})